package com.kdg.controller;

import com.kdg.entity.User;
import com.kdg.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by kong on 2018/6/25.
 */
@Controller
public class TestController {

    @Autowired
    IUserService userService;

    @GetMapping("test")
    @ResponseBody
    public String test(){
        User user = userService.selectById(1);
        return "44444444444";
    }
}
